'''
@Author: hua
@Date: 2020-01-18 16:56:13
@description: 
@LastEditors  : hua
@LastEditTime : 2020-02-14 20:17:58
'''
#mysql
SQLALCHEMY_DATABASE_URI = 'mysql://root:mysql123@mysql:3306/chat?charset=utf8'
SQLALCHEMY_TRACK_MODIFICATIONS = True
#debug
DEBUG_LOG = True
SAVE_LOG = 2
#upload
UPLOAD_FOLDER = '/uploads/'# 允许目录
MAX_CONTENT_LENGTH = 16 * 1024 * 1024  # 允许大小16MB
ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif','amr'])  # 允许文件
#jwt
SECRET_KEY = '7PXsHcHGfa4e3kEs8Rvcv8ymjI0UeauX'
JWT_LEEWAY = 604800
#redis
REDIS_PAS = 'asila19990'
REDIS_IP  = 'redis'
REDIS_PORT = '6379'
REDIS_DB = '0'